﻿using System;
using System.Runtime.CompilerServices;

namespace ConsoleApp1
{
    class Program
    {
        int say()
        {
            Console.WriteLine("???");
            return 0;
        }
        static void Main(string[] args)
        {
            // M1 m=new M1();
            // m.X = 1;
            // Console.WriteLine(m.ShaMaLe());
            M2 m2=new M2();
            m2.X = 3;
            m2.Z = 10;
            RE:
            m2.SaySome();
            goto R0;
            goto RE;
            R0:
            return;

        }
    }

    class M1
    {
        private int x = 0;
        private int y = 0;
       

        public int X
        {
            get => x;
            set => x = value;
        }

        public int Y
        {
            get => this.y;
            set => this.y = value;
        }

        public int ShaMaLe()
        {
            return this.X + this.Y;
        }
    }

    class M2:M1
    {
        private int z = 1;

 

        public int Z
        {
            get => z;
            set => z = value;
        }


        public void SaySome()
        {
            Console.WriteLine("X="+this.X+" Z="+this.Z);
        }
        
    }
    
   
    
    
}
